package Aop;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Fou Jack of all trades and master of none.
 * @date 2022/1/5 14:47
 */
public class AopTest {
    public static void main(String[] args) throws Exception {
        ApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"Aop.xml"});
        BeanFactory factory = context;
        IAOPServices services = (IAOPServices) context.getBean("serviceImplA");
        services.withAopMethod();
        services.withNoAopMethod();
    }


}
